package com.asm.entity.sys;

import com.asm.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author zhangyufu
 * @description 小区信息类，继承于BaseEntity类。
 * 包括小区的类型，名字，地址，以及一些所属信息
 * @data 2019/7/9
 */
@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_community")
public class Community  extends BaseEntity {

    @Column(name = "community_type", length = 25)
    private String type;

    @Column(name = "community_name", length = 50)
    private String name;

    @Column(name = "community_longitude")
    private String longitude;

    @Column(name = "community_latitude")
    private String latitude;

    @Column(name = "district_id")
    private Long districtId;

    @Column(name = "trade_area_id")
    private Long tradeAreaId;

}
